public class Poker {
    PokerNumber numberObj;
    PokerSuit suitObj;
    public Poker(PokerNumber numberObj,PokerSuit suitObj){
        this.numberObj = numberObj;
        this.suitObj = suitObj;
    }
    //当前牌比传入的牌大返回真否则返回假
    public boolean compare(Poker other){
        boolean result = false;
        if(this.numberObj.tag == other.numberObj.tag){
            if(this.suitObj.tag > other.suitObj.tag){
                result = true;
            }else{
                result = false;
            }
        }else if(this.numberObj.tag > other.numberObj.tag){
            result = true;
        }else {
            result = false;
        }
        return result;
    }
    public void display(){
        System.out.println(this.numberObj.number+this.suitObj.suit);
    }
}
